package com.ruoyi.crm.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
@TableName("crm_lead_info")
@ExcelIgnoreUnannotated
public class LeadInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**线索ID(主键)*/
    @TableId(value = "lead_id")
    @ExcelProperty(value = "线索ID")
    private Long leadId;
    /**线索状态*/
    @TableField("lead_status")
    @ExcelProperty(value = "线索状态")
    private String leadStatus;
    /**客户ID*/
    @TableField("customer_id")
    @ExcelProperty(value = "客户ID")
    private Long customerId;
    /**客户来源ID*/
    @TableField("source_id")
    @ExcelProperty("客户来源ID")
    private Long sourceId;

    /**公司规模大小ID*/
    @ExcelProperty(value = "公司规模大小ID")
    private Long companySizeId;

    /**联系人ID*/
    @TableField("contact_id")
    @ExcelProperty(value = "联系人ID")
    private Long contactId;

    /**客户类型ID*/
    @ExcelProperty(value = "客户类型ID")
    private Long customerTypeId;

    /**负责人ID*/
    @TableField("responsible_person_id")
    @ExcelProperty(value = "负责人ID")
    private Long responsiblePersonId; // 负责人ID

    /**最后跟进时间*/
    @ExcelProperty(value = "最后跟进时间")
    private Date lastTime;

    /**下次联系时间*/
    @ExcelProperty(value = "下次联系时间")
    private Date nextTime;

    /**备注*/
    @TableField("remark")
    @ExcelProperty(value = "备注")
    private String remark; // 备注

}
